[Var:'errorFlag'=false,'errorCode'=0,'errorMsg'='No error']

[If:(Action_Param:'keyID')=='']
	[Var:'errorFlag'=true,'errorCode'=9999,'errorMsg'=('ERROR: Some unknown error occurred.<br>Please report the following to the <a href=\"mailto:admin@MySite.com?subject=Mysite.com%20Unknown%20Error%20Occurred&amp;body=Key%20ID%20Error%20on:%20' + (String_GetField:-FieldNumber=(String_CountFields:-Delimiter='/',(Response_FilePath)),-Delimiter='/',(Response_FilePath),' ',(Error_CurrentError),'/',(Error_CurrentError:-ErrorCode),encodeURL) + '\">Web site administrator</a>.<br>Key ID Error on: ' +  (String_GetField:-FieldNumber=(String_CountFields:-Delimiter='/',(Response_FilePath)),-Delimiter='/',(Response_FilePath),' ',(Error_CurrentError),'/',(Error_CurrentError:-ErrorCode)))]
[Else:(Action_Param:'name')=='']
	[Var:'errorFlag'=true,'errorCode'=7777,'errorMsg'='You did not complete all required fields.']
[else]
	[inline:
		-Database= ...etc
		-Search]
		[If:(error_currenterror)==(Error_NoError)]
			[Var:'errorCode'=5000,'errorMsg'='The action was a success this is a message to report that fact.']
			[Error_SetErrorCode:(Var:'errorCode')]
			[Error_SetErrorMessage:(Var:'errorMsg')]
			[Include:'OK.lasso']
		[else]
			[Var:'errorFlag'=true,'errorCode'=9999,'errorMsg'=('ERROR: Some unknown error occurred.<br>Please report the following to the <a href=\"mailto:admin@MySite.com?subject=Mysite.com%20Unknown%20Error%20Occurred&amp;body=Error%20on:%20' + (String_GetField:-FieldNumber=(String_CountFields:-Delimiter='/',(Response_FilePath)),-Delimiter='/',(Response_FilePath),' ',(Error_CurrentError),'/',(Error_CurrentError:-ErrorCode),encodeURL) + '\">Web site administrator</a>.<br>Error on: ' + (String_GetField:-FieldNumber=(String_CountFields:-Delimiter='/',(Response_FilePath)),-Delimiter='/',(Response_FilePath),' ',(Error_CurrentError),'/',(Error_CurrentError:-ErrorCode)))]
			or
			[Var:'errorFlag'=true,'errorCode'=7777,'errorMsg'='No records found.']
		[/If]
	[/inline]
[/If]

[If:(Var:'errorFlag')==true]
	[Error_SetErrorCode:(Var:'errorCode')]
	[Error_SetErrorMessage:(Var:'errorMsg')]
	[Include:'Origform.lasso']
[/If]


[If:(Error_CurrentError:-ErrorCode)>500]
	<p><font size="4" color="#CC3333" face="arial">[Error_CurrentError:-EncodeNone]</font></p>
[/If]
